<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>菜单列表</title>
    <th:block th:include="~{common/common::commonHead}"/>
    <script th:src="@{/js/xxxxx/xxxList.js}"></script>
</head>
<body>
<div class="page-body">
    <div class="panel panel-primary shiny">
        <div class="panel-heading bg-blue">
            XXX列表
        </div>
        <div class="widget-body grid-table">
            <div class="toolbar">
                <div class="fl-left">
                    <button data-menu-id="000000" data-click="add('xxxxx/xxxAdd.html','xxxList')" class="btn btn-blue shiny">添加</button>
                    <button data-menu-id="000000" data-click="del('xxxList','system/batchDelXxx','xxxId')" class="btn btn-danger shiny">批量刪除</button>
                </div>
                <div class="toolbar-right">
                    <div class="fl-right">
                        <div class="btn-group" role="group">
                            <button data-click="toggleFilter()" class="btn btn-default text-center">
                                <i class="fa fa-filter fa-fw"></i>
                            </button>
                            <button data-click="refresh('xxxList')" class="btn btn-default">
                                <i class="fa fa-refresh fa-fw"></i>
                            </button>
                            <button data-click="download('xxxList')" class="btn btn-default">
                                <i class="fa fa-download fa-fw"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            <div id="xxxList"></div>
            <form class="filter search-content form-horizontal" role="form">
                <div class="col-xs-6">
                    <div class="form-group">
                        <label class="col-xs-4 control-label"> 菜单编号 </label>
                        <div class="col-xs-8">
                            <div class="iconic-input right">
                                <input name="menuId" type="text" class="form-control spinner"
                                       placeholder="6位数字">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xs-6">
                    <div class="form-group">
                        <label class="col-xs-4 control-label"> 菜单名称 </label>
                        <div class="col-xs-8">
                            <div class="iconic-input right">
                                <input name="menuName" type="text" class="form-control spinner"
                                       placeholder="菜单名称">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xs-6">
                    <div class="form-group">
                        <label class="col-xs-4 control-label"> 上级菜单 </label>
                        <div class="col-xs-8">
                            <select name="parentId" class="form-control spinner"
                                    data-url="system/listMenu" data-value-field="menuId"
                                    data-text-field="menuName" data-value="-1">
                                <option value="-1">全部</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="col-xs-6">
                    <div class="form-group">
                        <label class="col-xs-4 control-label"> 菜单级别 </label>
                        <div class="col-xs-8">
                            <select name="menuLevel" class="form-control spinner">
                                <option value="-1">全部</option>
                                <option value="1">一级</option>
                                <option value="2">二级</option>
                                <option value="3">三级</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="col-xs-6">
                    <div class="form-group">
                        <label class="col-xs-4 control-label"> 菜单状态 </label>
                        <div class="col-xs-8">
                            <select name="menuStatus" class="form-control spinner">
                                <option value="-1">全部</option>
                                <option value="0">隐藏</option>
                                <option value="1">显示</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="col-xs-12">
                    <button type="button" data-click="hideFilter()" class="btn btn-default pull-right">取消</button>
                    <button type="button" data-click="submitFilter('xxxList')" class="btn btn-blue pull-right">确定</button>
                </div>
            </form>
        </div>
    </div>

</div>
</body>
</html>
